package com.koron.order.patrol.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.patrol.bean.po.PatrolEquipmentItemPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 巡视工单-巡视点设备下检查项从表(PatrolEquipmentItem)表服务接口
 *
 * @author zhouj
 * @since 2021-10-26 15:26:22
 */
public interface PatrolEquipmentItemService {

    int insertOrUpdate(SessionFactory factory, PatrolEquipmentItemPo patrolEquipmentItem);

    int insertOrUpdateBatch(SessionFactory factory, List<PatrolEquipmentItemPo> patrolEquipmentItemList);

    int insert(SessionFactory factory, PatrolEquipmentItemPo patrolEquipmentItem);

    int insertBatch(SessionFactory factory, List<PatrolEquipmentItemPo> patrolEquipmentItemList);

    int update(SessionFactory factory, PatrolEquipmentItemPo patrolEquipmentItem);

    int deleteById(SessionFactory factory, String id);

    PatrolEquipmentItemPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, PatrolEquipmentItemPo patrolEquipmentItem, PageQuery pageQuery);

    List<PatrolEquipmentItemPo> queryList(SessionFactory factory, PatrolEquipmentItemPo patrolEquipmentItem);

    List<PatrolEquipmentItemPo> queryByPatrolEquipmentId(SessionFactory factory, String patrolEquipmentId);

}
